package cn.sunline.test.api.service.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.sunline.test.api.model.User;

@FeignClient(name= "spring-cloud-eureka-user")
public interface UserService {
	@RequestMapping(value = "/user/hello/{name}")
    public String hello(@RequestParam(value = "name") String name);
	
	@RequestMapping(value = "/user")
    public User add(@RequestBody User user);
}
